package com.heroCW.bodhiAttic.exception;

import lombok.Getter;
import lombok.Setter;

/**
 * 自定义业务异常
 */
@Getter
@Setter
public class CustomException extends RuntimeException {

    private  Integer code;

    public CustomException(String message) {
        super(message);
    }

    public CustomException(Integer code, String message) {
        super(message);
        this.code = code;
    }

    public CustomException(Integer code, String message, Throwable cause) {
        super(message, cause);
        this.code = code;
    }
}
